//
//  GMPerson.m
//  GroupManager
//
//  Created by 欧阳 鹏 on 11-10-18.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "GMPerson.h"


@implementation GMPerson

@synthesize person;

+ (id)personWithPerson:(ABRecordRef)_person {
	GMPerson *retVal = [[[self alloc] init] autorelease];
	retVal->person = _person;
	return retVal;
}

- (NSString*)getProperty:(ABPropertyID)property {
	NSString* retVal = nil;
	CFStringRef value = ABRecordCopyValue(person, property);
	if (value) {
		retVal = [NSString stringWithString:(NSString *)value];
		CFRelease(value);
	}
	return retVal;
}

@end
